/* -- page structure */
body {
    font-family:Verdana, "sans-serif";
}

.jtk-demo-main {
    width:100vw;
    height:100vh;
    display:flex;
}

.jtk-demo-canvas {
    flex: 0 0 80%;
    position:relative;
}

.jtk-demo-rhs {
    padding:1rem;
    background-color:WhiteSmoke;
}

.jtk-surface {
    width:100%;
    height:100%;
}

.miniview {
    position:absolute;
    right:1rem;
    top:1rem;
    z-index:100;
}

.controls {
    position:absolute;
    left:1rem;
    top:1rem;
}

/* ----------- / page structure ---------------- */
.jtk-demo-groups {
    display: flex;
    height: 100%;
}

.jtk-node {
    border: 1px solid #ccc;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    min-width: 100px;
    padding: 10px;
    z-index: 11;
}

.jtk-group {
    border: 2px solid #9e9e9e;
    z-index: 10;
    min-width: 250px;
    min-height: 250px;
}

.jtk-group.jtk-drag-hover, .jtk-node.jtk-drag-hover {
    outline: 2px solid red;
}

.group-title {
    margin: 0;
    width: 100%;
    display: flex;
    align-items: center;
    background-color: #9e9e9e;
    color: white;
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-indent: 7px;
    padding: 7px;
    box-sizing: border-box;
}

.jtk-group button {

    cursor: pointer;
    color: black;
    background-color: transparent;
    outline: none;
    width: 20px;
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding-bottom: 3px;
    margin-left: 5px;
    border: 1px solid transparent;

}

.jtk-group button:hover {
    background-color: #f76258;
}

.jtk-group .expand {
    margin-left: auto;
}

.jtk-group .group-delete {
    right: 45px;
}

.jtk-group .expand:after {
    content: "-";
}

.jtk-group .group-delete:after {
    content: "x";
}

.group-connect {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.connect {
    cursor: pointer;
}

.jtk-node .connect {
    width: 10px;
    height: 10px;
    background-color: #f76258;
    position: absolute;
    bottom: 0.25rem;
    left: 0.75rem;
}

.jtk-group {
    background-color: #f7f7f7;
}

.jtk-group.jtk-group-collapsed {
    height: 40px;
    min-height: 0;
}

.jtk-group.jtk-group-collapsed .expand:after {
    content: "+";
}

.jtk-group [jtk-group-content] {
    min-height: 210px;
    margin: 5px;
    width: auto;
}

.jtk-group.jtk-group-collapsed [jtk-group-content] {
    display: none;
    min-height: 0;
}

.jtk-connector {
    z-index: 12;
}

.jtk-node .add, .jtk-node .delete {
    position: absolute;
    top: 3px;
}


.jtk-surface.jtk-drag-drop-active {
    outline: 6px dotted #4ea758 !important;
}

.jtk-surface.jtk-drag-drop-hover {
    outline: 6px solid #f7a45d !important;
}

[data-jtk-managed].jtk-drag-drop-hover {
    outline: 6px solid #f7a45d !important;
}

.groups-endpoint circle {
    fill: #89bcde;
}

.jtk-drag-original-group {
    z-index: 12;
}

.jtk-drag-active {
    outline: 2px solid forestgreen;
}

.jtk-drag-hover {
    outline: 2px solid orangered;
}

/* --------------- styles specific to the headless group type ------------------------------ */

.headless-group button {
    position: absolute;
    top: 0.5rem;
    background-color: antiquewhite;
}

.headless-group .expand {
    right: 2rem;
}

.headless-group .group-delete {
    right: 0.5rem;
}

.headless-group.jtk-group-collapsed {
    height: 3rem !important;
}

.headless-group.jtk-group-collapsed > .jtk-node, .headless-group.jtk-group-collapsed > .jtk-group {
    display:none;
}

.headless-group.jtk-group-collapsed button {
    top: 0.75rem;
}

/* --------------- / styles specific to the headless group type ------------------------------ */
